/*
 * Copyright 2016-2018 TVI Go Easy.
 * Created on 2018/1/24 16:11
 */
package com.tvi.cloud.license.repository;

import com.tvi.cloud.license.model.License;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 许可信息数据访问接口
 *
 * @author mechanic
 */
@Repository
public interface LicenseRepository extends JpaRepository<License, String> {
    /**
     * 按组织ID查找匹配的许可信息
     *
     * @param organizationId 组织ID
     * @return 许可信息
     */
    List<License> findByOrganizationId(String organizationId);
}
